import {
    get,
    post
} from '../utils/request'

export const refreshToken = (refresh_token, tenantId) => {
    return post('/api/cloud-auth/oauth/token', {
        headers: {
            "Tenant-Id": tenantId
        },
        params: {
            tenantId,
            refresh_token,
            grant_type: "refresh_token",
            scope: "all"
        }
    });
}